
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { formatDate } from '@utils'
import requestApi from '../request/api'

const date = ref(formatDate(Date.now()))
// const getintegralItemsData = async () => {
//   try {
//     const response = await requestApi.integralItems({ })
//     console.log('请求数据.....getintegralItemsData data:', response.data)
//   } catch (error) {
//     console.error('Error fetching getintegralItemsData data:', error)
//   } finally {
//     console.log('Request completed')
//   }
// }
// //3\使用生命周期函数 (页面加载时调用)
// onMounted(() => {
//   getintegralItemsData()
// })

</script>

<template>
  <div>
    <p>This is home Page.</p>
    <p>Current date: {{ date }}</p>
    <!-- <h3>{{requestUrl.api}}</h3> -->
  </div>
</template>


